]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
system: Drop custom styling of user submenu icon
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Jun 2019 21:26:41 +0000 (23:26 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 29 Jun 2019 20:01:52 +0000 (20:01 +0000)
The default style we get from .popup-menu-icon actually works better,
as it ensures consistency with all the other submenu icons used in
the aggregate menu.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/591

data/theme/gnome-shell-sass/_common.scss
js/ui/status/system.js

index 32a6df72717974e34c72cff8d4e48c3e7b15868f..0b38c9c53ed949e4e37153955a732047d8117eea 100644 (file)
@@ -1155,11 +1155,6 @@ StScrollBar {
 
   // a little unstructured mess:
 
-  .system-switch-user-submenu-icon {
-    icon-size: 16px;
-    padding: 0 4px;
-  }
-
   #appMenu {
     spinner-image: url("resource:///org/gnome/shell/theme/process-working.svg");
     spacing: 4px;
index a7aa171cff1d3e112bd860583ee1c60322d1781c..68c20e2244425dcc006b4de2a58e0620ddfa4d05 100644 (file)
@@ -186,10 +186,7 @@ var Indicator = class extends PanelMenu.SystemIndicator {
         let item;
 
         this._switchUserSubMenu = new PopupMenu.PopupSubMenuMenuItem('', true);
-        this._switchUserSubMenu.icon.set({
-            icon_name: 'avatar-default-symbolic',
-            style_class: 'system-switch-user-submenu-icon'
-        });
+        this._switchUserSubMenu.icon.icon_name = 'avatar-default-symbolic';
 
         // Since the label of the switch user submenu depends on the width of
         // the popup menu, and we can't easily connect on allocation-changed